﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace ChinessChess
{
   public class COCo
    {
        
        private int m_dong;
        private int m_cot;
        private Boolean m_state;//true la co quan co,false khong co quan co
        private int index;
        private ChessColor m_color;
        private ChessType m_type;
        private String m_name;

        public String strName
        {
            get { return m_name; }
            set { m_name = value; }
        }
        public COCo() {
            this.m_color = ChessColor.Default;
            m_dong = 0;
            m_cot = 0;
            m_state = false;
            index = -1;
            this.m_type = ChessType.Default;
            strName = "";
           
        }

        public ChessType Type{
            get { return m_type; }
            set { m_type = value; }
        }
       
        public ChessColor Color{
            get { return m_color; }
            set { m_color = value; }
        }

        public int Index{
            get { return index; }
            set { index = value; }
        }

        public Boolean State{
            get { return m_state; }
            set { m_state = value; }
        }

        public int Dong{
            get { return m_dong; }
            set { m_dong = value; }
        }

        public int Cot{
            get { return m_cot; }
            set { m_cot = value; }
        }

       
    }
}
